#include <stdio.h>
#include "hme_conf.h"
#include "temperature_task.h"

#ifdef 	HME_P2

void pvts_test(void)
{
	signed int tp = 0;
	uint32_t mode;
	bool result;
	
	delay_t(500);
	
	mode = tp_mode;
#ifndef efuse_trim
	result = ts_trim(30);   
    if(result == true){
	tp = get_chip_temperature(mode);
	printf("temperature is %d\n",tp);
	}else
	printf("the temperature difference is too big,maybe something is wrong\n");
	//while(1){};
#else
	tp = test(mode);
	printf("temperature is %d\n",tp);
#endif
		
}

#endif
